home *** CD-ROM | disk | FTP | other *** search
Wrap
ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) NNNNAAAAMMMMEEEE scsidisktest - finds and reallocates bad blocks on SCSI and Fibre Channel Disks SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt [[[[----VVVV ((((vvvveeeerrrrbbbboooosssseeee))))]]]] [[[[----xxxx ((((EEEExxxxppppeeeerrrrtttt MMMMooooddddeeee))))]]]] [[[[----RRRR ((((RRRReeeeaaaadddd TTTTeeeesssstttt))))]]]] [[[[----WWWW ((((WWWWrrrriiiitttteeee TTTTeeeesssstttt))))]]]] [[[[----CCCC ((((WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee TTTTeeeesssstttt))))]]]] [[[[----nnnn <<<<NNNNoooo.... ooooffff TTTTiiiimmmmeeeessss ttttoooo rrrruuuunnnn tttthhhheeee TTTTeeeesssstttt>>>>]]]] [[[[----ssss <<<<SSSSttttaaaarrrrttttiiiinnnngggg BBBBlllloooocccckkkk>>>>]]]] [[[[----tttt <<<<TTTToooottttaaaallll NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttoooo tttteeeesssstttt>>>>]]]] [[[[----zzzz <<<<MMMMaaaaxxxx NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttrrrraaaannnnssssffffeeeerrrrrrrreeeedddd ppppeeeerrrr ccccoooommmmmmmmaaaannnndddd>>>>]]]] [[[[----SSSS ((((SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll PPPPaaaatttttttteeeerrrrnnnn))))]]]] [[[[----BBBB ((((BBBBuuuutttttttteeeerrrrffffllllyyyy PPPPaaaatttttttteeeerrrrnnnn))))]]]] [[[[----PPPP ((((DDDDiiiissssppppllllaaaayyyy PPPP LLLLiiiisssstttt))))]]]] [[[[----GGGG ((((DDDDiiiissssppppllllaaaayyyy GGGG LLLLiiiisssstttt))))]]]] [[[[----LLLL ((((SSSShhhhoooowwww DDDDeeeeffffeeeeccccttttiiiivvvveeee BBBBlllloooocccckkkk CCCCoooouuuunnnntttt))))]]]] -_d _D_E_V_I_C_E DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN scsidisktest is an interactive utility to analyze the disk surface of SCSI devices accessed using the _S_G_I _S_C_S_I subsystem. It finds and reallocates bad blocks on the disk. It can also be used to display the Disk Defect Lists (P List and G list). OOOOPPPPTTTTIIIIOOOONNNNSSSS ----VVVV VVVVeeeerrrrbbbboooosssseeee MMMMooooddddeeee In this mode scsidisktest displays the block numbers of the blocks being tested while the test is in progress. ----xxxx EEEExxxxppppeeeerrrrtttt MMMMooooddddeeee This mode allows the testing process without being interrupted for confirmation. ----RRRR RRRReeeeaaaadddd TTTTeeeesssstttt During this test,the SSSSCCCCSSSSIIII RRRReeeeaaaadddd((((11110000)))) Command is used to read data blocks from the disk (without any retries). ----WWWW WWWWrrrriiiitttteeee TTTTeeeesssstttt During this test, a random byte pattern is written to the disk using the SSSSCCCCSSSSIIII WWWWrrrriiiitttteeee((((11110000)))) Command (without any retries). ----CCCC WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee TTTTeeeesssstttt During this test, a random byte pattern is written to the disk using the SSSSCCCCSSSSIIII WWWWrrrriiiitttteeee((((11110000)))) Command (without any retries) and that pattern is read from the disk using the SSSSCCCCSSSSIIII RRRReeeeaaaadddd((((11110000)))) Command (without any retries). The pattern read, is checked against the pattern written earlier to check for any discrepancies. ----nnnn <<<<NNNNoooo.... ooooffff TTTTiiiimmmmeeeessss ttttoooo rrrruuuunnnn tttthhhheeee tttteeeesssstttt>>>> The test can be run for multiple times depending on the value given here. ----ssss <<<<SSSSttttaaaarrrrttttiiiinnnngggg BBBBlllloooocccckkkk>>>> This specifies the starting block of the chunk of blocks being tested. PPPPaaaaggggeeee 1111 ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ----tttt <<<<TTTToooottttaaaallll NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttoooo TTTTeeeesssstttt>>>> This specifies the total no. of blocks being tested. If the ----ssss <<<<SSSSttttaaaarrrrttttiiiinnnngggg BBBBlllloooocccckkkk>>>> and ----tttt <<<<TTTToooottttaaaallll NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss>>>> choices are NOT specified, then the test is carried out on the entire disk under consideration (Recommended). ----zzzz <<<<MMMMaaaaxxxx NNNNoooo.... ooooffff BBBBlllloooocccckkkkssss ttttrrrraaaannnnssssffffeeeerrrrrrrreeeedddd ppppeeeerrrr ccccoooommmmmmmmaaaannnndddd>>>> This specifies the maximum data transfer size during the SSSSCCCCSSSSIIII RRRReeeeaaaadddd((((11110000)))),,,, WWWWrrrriiiitttteeee((((11110000)))) commands. If not specified, a maximum of _2_5_6 blocks are transferred in every Read(10), Write(10) command during the test. ----SSSS SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll PPPPaaaatttttttteeeerrrrnnnn In this pattern the disk sectors are scanned sequentially. ----BBBB BBBBuuuutttttttteeeerrrrffffllllyyyy PPPPaaaatttttttteeeerrrrnnnn In this pattern the user scans the disk surface alternately from the extremes of the block length being scanned. ----PPPP DDDDiiiissssppppllllaaaayyyy PPPP LLLLiiiisssstttt Display the defective blocks in the P List in the PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr Format. ----GGGG DDDDiiiissssppppllllaaaayyyy GGGG LLLLiiiisssstttt Display the defective blocks in the G List in the PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr Format. ----LLLL SSSShhhhoooowwww DDDDeeeeffffeeeeccccttttiiiivvvveeee BBBBlllloooocccckkkk CCCCoooouuuunnnntttt Display the total number of defective blocks on the disk. This number includes the blocks in all Defect Lists. IIIInnnntttteeeerrrraaaaccccttttiiiivvvveeee MMMMooooddddeeee MMMMeeeennnnuuuussss SSSSccccaaaannnn MMMMooooddddeeeessss ((((RRRReeeeaaaadddd |||| WWWWrrrriiiitttteeee |||| WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee)))) In the RRRReeeeaaaadddd Mode the user performs a SCSI Read(10) (with no retries) on the disk. In the WWWWrrrriiiitttteeee Mode the user writes a random byte pattern on the disk using the SCSI Write(10) command (with no retries). In the WWWWrrrriiiitttteeee----RRRReeeeaaaadddd----CCCCoooommmmppppaaaarrrreeee Mode the user writes a random byte pattern on the disk using the SCSI Write(10) command (with no retries), performs a SCSI Read(10) (with no retries) and then compares the bytes read, with the bytes written for any discrepancies. The Write-Read-Compare Mode performs the most exhaustive scan of the disk surface. SSSSccccaaaannnn PPPPaaaatttttttteeeerrrrnnnn ((((BBBBuuuutttttttteeeerrrrffffllllyyyy |||| RRRRaaaannnnddddoooommmm |||| SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll)))) In the BBBBuuuutttttttteeeerrrrffffllllyyyy Pattern the user scans the disk surface alternately from the extremes of the block length being scanned. In the RRRRaaaannnnddddoooommmm Pattern the user scans any random block in the block length under PPPPaaaaggggeeee 2222 ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) consideration. In the SSSSeeeeqqqquuuueeeennnnttttiiiiaaaallll Pattern the user scans the disk surface sequentially. The disk surface is normally scanned in chunks of 256 blocks. If an error is detected, the chunk causing the error is scanned again, 1 block at a time to find the block causing the error. That block is then reallocated. If there is no space on the disk to reallocate that block, a corresponding error message is displayed. HHHHaaaarrrrddddwwwwaaaarrrreeee DDDDeeeeffffeeeecccctttt LLLLiiiisssstttt ((((PPPP LLLLiiiisssstttt |||| GGGG LLLLiiiisssstttt)))) PPPP ((((PPPPrrrriiiimmmmaaaarrrryyyy DDDDeeeeffffeeeecccctttt TTTTyyyyppppeeee)))) LLLLiiiisssstttt :::: P type flawed sectors are identified at the time of shipment in a list of defects (permanent flaws) supplied by the manufacturer and stored on the disc in an area that is not directly accessible by the user. (This list may be referred to as an ETF List). This defect list is not modified or changed by the disc drive (or initiator) after shipment. GGGG ((((GGGGrrrroooowwwwtttthhhh DDDDeeeeffffeeeecccctttt TTTTyyyyppppeeee)))) LLLLiiiisssstttt :::: G type flawed sectors contain medium flaws and have been reallocated as a result of receiving a Reassign Blocks command, or certification defects (C type) reallocated during a previous Format Unit command, or Data Defects (D type) reallocated during a previous Format Unit command or defects that have been automatically reallocated by the drive. This (G) list is recorded on the disc drive media and may be referenced for the current (and subsequent) Format Unit commands. This (G) list does not include the Primary (P) list of defects. LLLLiiiisssstttt DDDDiiiissssppppllllaaaayyyy FFFFoooorrrrmmmmaaaatttt ((((BBBByyyytttteeeessss FFFFrrrroooommmm IIIInnnnddddeeeexxxx |||| PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr)))) :::: Each defect descriptor for the BBBByyyytttteeeessss ffffrrrroooommmm IIIInnnnddddeeeexxxx format specifies the beginning of an eight bit (1 byte) defect location on the medium. Each defect descriptor is comprised of the cylinder number of the defect, the head number of the defect and the number of bytes from Index to the defect location. Each defect descriptor for the PPPPhhhhyyyyssssiiiiccccaaaallll SSSSeeeeccccttttoooorrrr format specifies a sector size defect location comprised of the cylinder number of the defect, the head number of the defect and the defect sector number. AAAAdddddddd BBBBaaaadddd BBBBlllloooocccckkkk ttttoooo tttthhhheeee HHHHaaaarrrrddddwwwwaaaarrrreeee DDDDeeeeffffeeeecccctttt LLLLiiiisssstttt:::: This options allow the user to add a defective block to the GGGG LLLLiiiisssstttt using the SCSI RRRReeeeaaaassssssssiiiiggggnnnn BBBBlllloooocccckkkkssss Command.More information about the Reassign Blocks command can be found in the SSSSCCCCSSSSIIII----3333 BBBBlllloooocccckkkk CCCCoooommmmmmmmaaaannnnddddssss ((((SSSSBBBBCCCC)))) document. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS Under Irix, the device name must correspond to the 'sc' device. PPPPaaaaggggeeee 3333 ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ++++oooo scsidisktest -d /dev/scsi/sc9d70l0 In the interactive mode, scsidisktest has to be invoked _w_i_t_h_o_u_t the -RWCSBnstx options (as shown above). ++++oooo scsidisktest -V -d /dev/scsi/sc9d70l0 When invoked with the (-V) Verbose option, scsidisktest prints out the block numbers being tested while carrying out the test (in the interactive mode). ++++oooo scsidisktest -C -B -n 2 -x -d /dev/scsi/sc9d70l0 In the non-interactive mode, scsidisktest is invoked as shown above. This causes scsidisktest to perform a (-C) Write-Read-Compare test on the _e_n_t_i_r_e disk sc9d70l0 by scanning it in a (-B) Butterfly pattern, (-n) 2 times. ++++oooo scsidisktest -C -B -n 2 -s 100 -t 100000 -x -d /dev/scsi/sc9d70l0 This invocation in the non-interactive mode, causes scsidisktest to perform a (-C) Write-Read-Compare test on (-t)100000 sectors of the disk sc9d70l0 starting from (-s) sector 100, by scanning it in a (-B) Butterfly pattern, (-n) 2 times. ++++oooo scsidisktest -V -C -B -n 2 -s 100 -t 100000 -x -d /dev/scsi/sc9d70l0 This invocation in the non-interactive mode, causes scsidisktest to perform a (-C) Write-Read-Compare test on (-t)100000 sectors of the disk sc9d70l0 starting from (-s) sector 100, by scanning it in a (-B) Butterfly pattern, (-n) 2 times. Due to the (-V) Verbose option, scsidisktest also prints out block numbers while the blocks are being tested. ++++oooo scsidisktest -P -d /dev/scsi/sc9d70l0 This invocation causes scsidisktest to display the defective blocks in the P list for disk sc9d70l0 in the Physical Sector Format. ++++oooo scsidisktest -L -d /dev/scsi/sc9d70l0 This invocation causes scsidisktest to display the total number of defective blocks on the disk. PPPPaaaaggggeeee 4444 ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) ssssccccssssiiiiddddiiiisssskkkktttteeeesssstttt((((1111mmmm)))) FILES /dev/scsi/sc*d*l* - the generic 'sc' device under Irix. SSSSEEEEEEEE AAAALLLLSSSSOOOO scsicontrol(1M), scsiha(1M), scsimodepage(1M), scsidiskformat(1M). NNNNOOOOTTTTEEEE This command is normally usable only by the superuser, because the standard permissions of the devices restrict access to other users. PPPPaaaaggggeeee 5555